package com.infra.server.utils;

/**
 * @author win
 * @date 2021/4/29 11:32
 * 常量
 */
public class ConstantUtil {

    // 请求头用户信息
    public static final String USER_INFO = "userInfo";

    public static final String AUTHORITY_PREFIX = "ROLE_";

    public static final String AUTHORITY_CLAIM_NAME = "authorities";
    /**
     * token请求头
     */
    public static final String AUTH_REQUEST_HEADER = "Authorization";
    /**
     * token令牌
     */
    public static final String AUTH_TOKEN_BEARER = "Bearer ";
    /**
     * 管理员角色
     */
    public static final String ADMINISTRATOR_ROLE = "INFRA";
    /**
     * 用户默认密码
     */
    public static final String DEFAULT_PASSWORD = "123456";
    /**
     * 资源key
     */
    public static final String RESOURCE_ROLES_MAP = "AUTH:RESOURCE_ROLES_MAP";

    /**
     * 用户操作日志索引名称
     */
    public static final String ELASTIC_USER_RECORD = "infra-user-record";
}
